import pyttsx3
def play_voidce(text):

    engine = pyttsx3.init()
    try:
        rate = engine.getProperty('rate')
        engine.setProperty('rate', 200)
        volume = engine.getProperty('volume')
        engine.setProperty('volume', 1.0)
        voices = engine.getProperty('voices')
        engine.setProperty('voice', voices[0].id)
        engine.say(text)
        engine.runAndWait()
    except Exception as e:
        print(e)
    finally:
        engine.stop()